<?php

/*
 * 美元支付
 */

class DollarCalc {

    private $dollar;
    private $product;
    private $service;
    private $rate = 1;

    public function requestCalc($productNow, $serviceNow) {
        $this->product = $productNow;
        $this->service = $serviceNow;
        $this->dollar = $this->product + $this->service;
        return $this->requestTotal();
    }

    private function requestTotal() {
        $this->dollar *= $this->rate;
        return $this->dollar;
    }

}
